package enums

type ResourceType int

const(
	MENU ResourceType=iota+1 // 菜单
	ACTION // 操作
)
func (p ResourceType) String() string {
	switch p {
	case MENU: return "菜单"
	case ACTION: return "操作"
	default:         return "请选择"
	}
}
func (p ResourceType) Value() int {
	return int(p)
}
func GetResourceTypeList() []EnumText {
	resourceTypeList:=[]EnumText{
		{Text: MENU.String(),Value: MENU.Value()},
		{Text: ACTION.String(),Value: ACTION.Value()},
	}
	return resourceTypeList
}
